<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libmpeg2-0.5.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libmad.html" title="libmad-0.15.1b">Prev</a>
          <p>
            libmad-0.15.1b
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libmusicbrainz.html" title=
          "libmusicbrainz-2.1.5">Next</a>
          <p>
            libmusicbrainz-2.1.5
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libmpeg2" name="libmpeg2"></a>libmpeg2-0.5.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libmpeg2
        </h2>
        <p>
          The <span class="application">libmpeg2</span> package contains a
          library for decoding MPEG-2 and MPEG-1 video streams. The library
          is able to decode all MPEG streams that conform to certain
          restrictions: <span class="quote">&ldquo;<span class=
          "quote">constrained parameters</span>&rdquo;</span> for MPEG-1, and
          <span class="quote">&ldquo;<span class="quote">main
          profile</span>&rdquo;</span> for MPEG-2. This is useful for
          programs and applications needing to decode MPEG-2 and MPEG-1 video
          streams.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz">
                http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/libmpeg2-0.5.1.tar.gz">
                ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/libmpeg2-0.5.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 0f92c7454e58379b4a5a378485bbd8ef
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 513 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libmpeg2 Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../x/installing.html" title=
          "Chapter&nbsp;24.&nbsp;X Window System Environment">X Window
          System</a> and <a class="xref" href="sdl.html" title=
          "SDL-1.2.15">SDL-1.2.15</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libmpeg2">http://wiki.linuxfromscratch.org/blfs/wiki/libmpeg2</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libmpeg2
        </h2>
        <p>
          Install <span class="application">libmpeg2</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i 's/static const/static/' libmpeg2/idct_mmx.c &amp;&amp;

./configure --prefix=/usr    \
            --enable-shared  \
            --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>. To perform a more comprehensive regression
          test, see the file <code class="filename">test/README</code> in the
          source tree.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;

install -v -m755 -d /usr/share/doc/mpeg2dec-0.5.1 &amp;&amp;
install -v -m644 README doc/libmpeg2.txt \
                    /usr/share/doc/mpeg2dec-0.5.1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i ...</strong></span>: This
          <span class="command"><strong>sed</strong></span> fixes problems
          with recent GCC compilers.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">corrupt_mpeg2, extract_mpeg2 and
              mpeg2dec</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libmpeg2.so and libmpeg2convert.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/mpeg2dec and
              /usr/share/doc/mpeg2dec-0.5.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="extract_mpeg2" name=
                    "extract_mpeg2"></a><span class="term"><span class=
                    "command"><strong>extract_mpeg2</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    extracts MPEG video streams from a multiplexed stream.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mpeg2dec" name="mpeg2dec"></a><span class=
                    "term"><span class=
                    "command"><strong>mpeg2dec</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    decodes MPEG1 and MPEG2 video streams.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libmpeg2-lib" name="libmpeg2-lib"></a><span class=
                    "term"><code class="filename">libmpeg2.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains API functions used to decode MPEG video streams.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libmpeg2convert" name=
                    "libmpeg2convert"></a><span class="term"><code class=
                    "filename">libmpeg2convert.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains API functions used for color conversions of MPEG
                    video streams.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-18 09:13:20 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libmad.html" title="libmad-0.15.1b">Prev</a>
          <p>
            libmad-0.15.1b
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libmusicbrainz.html" title=
          "libmusicbrainz-2.1.5">Next</a>
          <p>
            libmusicbrainz-2.1.5
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
